# -*- utf-8 -*-
from django.urls import re_path

from . import views

urlpatterns = [
    re_path(r'login$', views.LoginView.as_view()),
    re_path(r'join$', views.JoinView.as_view()),
    re_path(r'dashboard$', views.IndexView.as_view({'get': 'dashboard'})),
    re_path(r'files$', views.IndexView.as_view({'get': 'files'})),
    re_path(r'newFile/$', views.IndexView.as_view({'post': 'newFile'})),
    re_path(r'delFile/$', views.IndexView.as_view({'post': 'delFile'})),
    re_path(r'download$', views.DownloadView.as_view({'get': 'get'})),
    re_path(r'motify$', views.DownloadView.as_view({'get': 'motify'})),
    re_path(r'motifyUpdate$', views.DownloadView.as_view({'post': 'update'})),
    re_path(r'', views.IndexView.as_view({'get': 'get'})),
]
